package cn.cloud.all.security.authentication;

import cn.cloud.all.security.core.Authentication;
import cn.cloud.all.security.core.AuthenticationException;

public class TestingAuthenticationProvider implements AuthenticationProvider {

    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        return authentication;
    }

    public boolean supports(Class<?> authentication) {
        return TestingAuthenticationToken.class.isAssignableFrom(authentication);
    }
}
